package message;

import java.util.ArrayList;

import peer.Neighbor;

/**
 * This interface describes all actions a class must perform for a accurate
 * use of the MessageHandler class.
 */
public interface MessageActions {
	
	void setPort(int port);

	/**
	 * Adds a neighbor to the local view of all neighbors.
	 * 
	 * @param newNeighbors A list of probably new neighbors. 
	 */
	void addNeighbors(ArrayList<Neighbor> newNeighbors);
	
	/**
	 * This method is invoked if the command type of the incoming message is
	 * unknown
	 * 
	 * @param payload The unknown message
	 */
	void unknownType(Message m);
}
